

# 写一个程序，计算
# 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + ..... + 1/99 + 1/100
# 的和


he = 0  # 用来记录结果的变量
i = 1
while i <= 100:
    # print(i)
    he = he + 1/i
    i = i + 1  # i += 1
print('结果:%s' % he)


